package org.example.controller;

import javax.annotation.Resource;
import org.example.service.PostageService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * author lyq
 * since 2024-12-02 14:46
 * description
 */
@RestController
@RequestMapping("/postage")
public class PostageController {

  @Resource
  private PostageService postageService;

  @RequestMapping("/getPostage")
  public Double getPostage(Integer type) {
    return postageService.getPostage(type);
  }
}
